
relations={"text":"123","token":"DFVGBHNJIMK<LVUBHNJ<L"}
def get_relations(func):
    def wrapper(*args,**kwargs):
        args=list(args)
        for i in range(len(args)):
            for key in relations.keys():
                k="{"+key+"}"
                #
                args[i]=str(args[i]).replace(k,relations.get(key))
        res=func(*args,**kwargs)
        return res
    return wrapper
@get_relations
def A(a,b,c):
    print(a)
    print(b)
    print(c)
A("{text}","token{text}","{token}")